package cn.com.cifi.mars.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import cn.com.cifi.mars.entity.MymRooms;
import cn.com.cifi.mars.entity.MymRooms2;
import cn.com.cifi.mars.mapper.mars.MymRooms2Mapper;
import cn.com.cifi.mars.mapper.mars.MymRoomsMapper;
import cn.com.cifi.mars.service.MymRooms2Service;

/**
 * <p>
 * （明源）房间信息流水表（明源价格变更测试使用） 服务实现类
 * </p>
 *
 * @author plx
 * @since 2020-05-19
 */
@Service
public class MymRooms2ServiceImpl extends ServiceImpl<MymRooms2Mapper, MymRooms2> implements MymRooms2Service {

	 @Autowired
	 private MymRooms2Mapper mymRooms2Mapper;
	
	@DS("mymrooms")
   	@Override
   	public List<MymRooms2> selectAllRoomsFromMym2(int month) {
   		return mymRooms2Mapper.selectAllRoomsFromMym2(month);
   	}

	@Override
	public void insertRoomsList(List<MymRooms2> insertList,String type) {
		mymRooms2Mapper.insertRoomsList(insertList,type);
	}
}
